package com.ctcc.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by Peanut on 2018/2/1.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(of = "openId")
@Entity
@Table(name = "tb_employee_temp")
public class Employee_temp {
    @Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    private String  tid;    // 表ID
    private String openId ;                   //人员的openid
    private String name;                    //姓名
    private String photoUrl;                //头像URL
    private String  phone;                   //手机号码
    private String isHidePhone  ;            //是否在通讯录中隐藏手机号码;0 不隐藏; 1 隐藏;默认为0
    private String email;                   //邮箱
    private String department ;              //组织长名称
    private String jobNo       ;             //企业工号
    private String jobTitle   ;              //职位
    private Integer gender ;                     //性别;0 不确定; 1 男; 2 女
    private Integer status     ;                 //状态 0 注销，1 正常，2 禁用
    private Integer orgUserType    ;             //是否部门负责人 0否， 1：是

    private String birthday;
    private String weights ;
    private String orgId ;
    private String uid ;
    private String contact ;

}
